﻿using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;

namespace App.Model.Main
{
    /// <summary>
    /// 系统角色
    /// </summary>
    //[Table(Name = "sys_role")]
    public class SysRole : EntityBase<int>
    {
        /// <summary>
        /// 角色名
        /// </summary>
        [Column(StringLength = 20, IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 接口id 1,2,3
        /// </summary>
        [JsonMap]
        [Column(MapType = typeof(string), StringLength = -2)]
        public List<int> ApiIds { get; set; }

        /// <summary>
        /// 模块id 1,2,3
        /// </summary>
        [JsonMap]
        [Column(MapType = typeof(string), StringLength = -2)]
        public List<int> ModuleIds { get; set; }

        /// <summary>
        /// 所属平台id
        /// </summary> 
        public int PlatformId { get; set; }
    }
}


